home *** CD-ROM | disk | FTP | other *** search
/ Champak 41 / Volume 41 - JOGO DISK .iso / Games / konka_66.swf / scripts / DefineSprite_215_g_fb / frame_1 / DoAction.as
Text File  |  2007-05-10  |  496b  |  32 lines

  1. _width = 36;
  2. _height = 70;
  3. _X = _parent.man._x;
  4. _Y = _parent.man._y + 1;
  5. atk = 20;
  6. xxs = "µî¿µëô";
  7. speed = 20;
  8. if(_parent.man._xscale == _parent.man.cc)
  9. {
  10.    f = 0;
  11. }
  12. if(_parent.man._xscale == - _parent.man.cc)
  13. {
  14.    f = 1;
  15. }
  16. this.onEnterFrame = function()
  17. {
  18.    this.swapDepths(100000 + _Y * 100 + id % 100);
  19.    if(f == 0)
  20.    {
  21.       _X = _X - speed;
  22.    }
  23.    else
  24.    {
  25.       _X = _X + speed;
  26.    }
  27.    if(_X < 0 || _X > 450)
  28.    {
  29.       this.removeMovieClip();
  30.    }
  31. };
  32.